I would like to fit a image into a path. I've read all the documentation about the distortions maps available but I still can't figure out how I can fit (not clip) an image into a mask or a path.
Original image:

Path:

Desirable result:

Does anyone have any idea how can I achieve a similar result?