First, you can create the M curve with the pen tool and a new image. Second, join the path. Click the point below everything else and approximately in the middle. Locate the point where you started the shape. Click to close the path and gives you the basic heart shape. In the Paths dialog box, locate the small circle made of dotted lines. Right-click the layer with the path in it. And select Rasterize Layer.