Fix images resync
fix spaces in galleries