Added file upload processing to resize images