Added special treatment of sprites of 0 and 1 image.