Implemented 3 channel support in textures as well as 4 channel.