Update photos-application.c

Remove the var, and teh try catch statements.