Committing before adding photo upload functionality