On PHP 8.2 this loop only had the last used image style in the $style_set...
requested to merge issue/media_contextual_crop-3420451:3420451-mediacontextualcroppreprocessresponsiveimage-ignores-variablessources into 2.0.x
Adjusted the find styles part, if I used a core 10.2 responsive image the original loop only yielded the last image_style and I needed all off them for the sources replacement loop.
Added an extra loop that checks if $variables['sources']
is set, then replaced all the srcset attributes with the newly created context aware URI. This loop can handle responsive sources that have multiple URI set.
Closes #3420451