Improve error message for 0 or 1 byte image files. Relates to #55.