Critical bug fix! To texture.

Width and height used null pointer and image loading always faild. This
should now be fixed.
Implements wrapper around usage of joystick.