Kludgy fix of non-power of two image artifacts