Creates a Sprite2D from the given resolver function that provides an Image.
A new Sprite2D instance.
The function that provides the Image.