added support to manipulate and draw a map's tiles