Removed heavy TextureImage class.
Fixed use of invalid cube texture targets.