Use curl instead of wget for image download.