increase max image size and other fixes to photo upload form