Added support for non 640x480 images, as long as they're multiple of 32