convert images to sprites