Strip out any parameters from image url when generating local file name