Added check to avoid constant reload of images when scrolling.