Add textureFromFrame helper