Any shape can be used to hold an image.
You can do this two ways, but both strat with drawing the heart-shaped frame. Once you have the frame, either select it and use File > Place.. to put the image in it directly, or place the image normally anyplace on the page or pasteboard, then cut, select the heart, and Paste Into.
If you have created the heart shape frame/shape in indesign.
Place the image you want to go into the frame on to your page or paste board away from the heart shape frame.
Select/click the heart shaped frame, while still selected, then - top menu - edit - paste into, that will put the image into the frame.