Split image in tiles