More work on sprites and images