added support for tiled graphics