Added scroll to top to make selected image visible.