Fixed image stretching when resizing, fixed cropped PDF previews