change exception handler in PhotoController