fix some photo issues