Image: added exception for error states [BC break]

Fixes #8

This is only proof of concept.

- Should error handler be in all methods which uses image specific methods?
- Should it check return value from some methods? Some methods returns `FALSE` on error.