- added RECT support to the texture upload code