Added check to prevent image being 0x0 (reported in #489).
Added check to prevent image being 0x0 (reported in #489).

Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick