Adds preview functionality
Remove image processing stuff.