initial implementation of texture wrapper. Not ready for use