add rounded corners to image and separated scroll magic logic into separate file