Added inverseWidth and height to sprite

Avoids many divisions by the sprite.Width