Erwan,
This line in the init function will always set the WIDGET_URL to be the same path as the widgets config file plus the assets/images folder (Which is the standard path).
WIDGET_URL = config.substring(0,config.lastIndexOf("/")) + "/assets/images/";
Do you have some suggestion for supporting non standard icon assets paths? If not them I don't see me making changes for non standard paths.