Fix image size and scroll logic