Properly crop preview image