When you choose a file from the file input, it will trigger fileChangeEvent. That event is then passed to the image cropper through imageChangedEvent which will load the image into the cropper.
fileChangeEvent
imageChangedEvent
Some javascript error fixed