faster getTexture() impl