No, it is NOT necessary. 


In fact, very few jobs require your photo in your Resume. These are mostly creative fields like YouTube content creation or customer facing roles like Front Desk or Customer Service. However if you feel that your photograph can help you land an opportunity, you should definitely consider adding it.