Added correct scaling of preview images.