Fix problems if preview is too large for the display area