Fix jpeg resizing

Edited file to allow resized jpgs to be uploaded again.