image preview is downsampled and rotated