add callback for RenderTexture::saveToFile