fix img->fig