Added ability to use texture modes

Change-Id: I2a64322213015505e9e66450f9adcbd8fded2888