Handle errors from image.identify

Fixes issues #59 and #60