Cannot upload photo. Get alert box with "Error saving photo undefined".