Added scroll check for images