Adds an icon
Create function to resize a NSImage object