Restored dynamic image update

First try to locate an image using the registry. If that fails
fallback to the configured docker repository, but still do a
pull to ensure the image it likely to be up-to-date.