update preview image size