Created a method to handle cutting up tileset images.