Redesigned the texture class to allow reading from arrays.
Imporved constructor arguments.
Implemented array constructor.