Fixed crash when clicking on the image.