got photos all working, but still have an error saving the file after it is cropped