Editing the image on click