Hey saw your solution, looks great.
One suggestion, instead of <img> tag, try <picture> tag, this will load only one of the two images(depending on if it is a mobile or desktop).
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture.
Hope this helps.
Marked as helpful
1