fixed issue when images where disappearing