Fixed an issue where images with sizes which were not powers of two would not draw.