fix continuity issue with images