enable images using query strings

Images with query strings failed before this patch.