Added TileImage
Consolidated the way tiles were drawn into TileImage class.