Fixed the bug of multiple images are selected by one click, by removing click event each loop.