fix gallery photos