Fixed bug with size limit checking on image drawing.
Added support for 4 bpp palette based images as per issue #4.