finished the Tile class for reading images and building the levels