Fixed the preview image when changing pagesize