xojo updated the code
added NSImage