I had to manually import the png file as the import script is unable to find resources from within the javascript code.