Adds some error handling for adding photos