With custom jQuery Ui widget, you can attach your own callback functions to it by passing options
to the plugin. However, if I want to attach one callback to "generate_img" event and later on another different but not mutually exclusive behaviour to the same widget event "generate_img", the later one will replace, instead of adding to the existing behaviour.
Is there a way to solve this problem? Thanks.