Avoid panicking when decoding an image with invalid dimensions but propagate the error instead. This required changing some function signatures, but none of these functions are part of the public API. I kept the error message the same, let me know if it should be changed to something more descriptive.
Avoid panicking when decoding an image with invalid dimensions but propagate the error instead. This required changing some function signatures, but none of these functions are part of the public API. I kept the error message the same, let me know if it should be changed to something more descriptive.
Fixes #161