simple functions to create tiled images