slight tweak to use getTiles for image generation