fixing external URLs for image resize