Transfering image into SVG code
1.
Save image into png by Photoshop
2.
Take the image into illustrator, set the Artboards to "Fit to Artwork Bounds"
3.
Press the "Image Trace", usually choose the High Fidelity Photo.
4.
Click the "Expand", and you will see the image becomes several layers, disabled the last one, usually it is background that you don't need.
5.
Save it into SVG, and then you can see the code of it.