Automatically change the image in image view.