Fixes issue with url generation for Images.