change pic to frame def