updated photo upload error handling. lowered quality to 50 to test success rate