Fixing image selection and scrolling to image on click.