processImages: Also put the 'used' part of the query string after the basename when the replacement image has a different format.
processImages: Allow more characters before ? when making up a file name for a processed image.
buildProduction: Don't run mergeIdenticalAssets on assets that have a query string in the url.

Prevents the instructions for the processImages transform from getting lost.
Release 1.8.0beta16.