Bind function added to Sprite and bug fix.

x and y values was mixed up.