Move to use Rect instead of separate x, y parameters.
Remove texture registration.