fix for disappearing images on mobile devices