Hi @Plastic,
Try printing that to the console to see what is returning and check if that url is valid by opening a new browser tab with it.
Usually when launching from the editor that url might be relative and you might need to append the base playcanvas.com domain name to the url.
Your code seems correct, if the images have been preloaded then most likely that’s the issue.