bug when left-clicking on the image corrected