Add ability to manage fileicon and filetype for icon param

Hi,

In "addResult" function, for "icon" parameter, I have needed to use a fileicon instead of a file. So I alter this function for my workflow, but I think this feature can be useful for other people.

Let me know if you think it's a interesting feature.

Regards,