Added constructor to Texture class to build texture from an array of data.