use texture data class when loading textures onto the graphics device