bugfix: ZeroDivisionError for images with dimensions like 1x54 px