public static void RenderToPng(GameResourceManager resources, RigidModel model, int width, int height, string outfile)