Fixed the bug that caused images to disappear as they scroll past viewport.