fix(controller): check image for hostname

Older images may still have a hostname in the database. Checking if
it has a hostname in the image name ensures backwards compatibility.