Sorry to report, but it is broken for me.
Can't add images, error here:
Also, why test image height every time?
widget.height(image_set_height + "px");
If possible, please let us have some settings page for the widget.
Else, just automatically store a value when adding/removing the images.
I am willing to help fixing both issues, let me know if you are interested.