Fix routing issue 

Routing issue due to success/error, fixed by replacing with then/catch in createNewPhoto. Fixes #48.