Fixing the settings check for IMAGE_PATH_PREFIX
Adding port support to image url