Widget Icons and helpers.

Added function to set options on widget icons. Helpers added two function from phpjs.com.