Fix sync issue with images