made something that turns an image into a sprite