pub(crate) fn arbitrary_image_with<P>(
    subpixels: impl Strategy<Value = P::Subpixel> + Clone + 'static,
    width_range: impl Into<SizeRange>,
    height_range: impl Into<SizeRange>,
) -> BoxedStrategy<Image<P>>
where
    P: Pixel + fmt::Debug,
    P::Subpixel: fmt::Debug,
{
    dims(width_range, height_range)
        .prop_flat_map(move |(w, h)| fixed_image_with(subpixels.clone(), w, h))
        .boxed()
}
Create a strategy to generate images with a given subpixel strategy and
dimensions selected within the specified ranges.
src/proptest_utils.rs