added support for tiled layers