Add support for creating textures from RGB and RGBA surfaces.