Convert to AMD

Converted to AMD some modules from dojox/image and dojox/widget