limit image size if smaller than scroll area