Store texture target in handle