GUI-964: Minor tweak to how the image is passed to the JS controller