updates to image uploading for production