fix issues with handling full image paths including http or https