I have one eventListener for 2 functions (file input change). One function adds a new image, and second function changes the current image. But because of trigger is changin