Added support for scaled sprites.