fix for parsing image names with a custom registry