give individual tiles an image

-also cleaned up more code