Extract texture ID from drawing.