Okay, here you go:
and quick example https://makecode.com/_E4kMLR6df0VP
I added the blocks to the bottom of the image ‘category’, which is under ‘advanced’.
Just one final mention, this won’t work great on hardware for large images / is optimized for speed, so a full screen image will be about 20kb / likely more than a physical device will be able to store.