Fixed right click image deletion issue