check result code (user may cancel taking photo)