As for having a photo in your CV, that's a nice thing to have, but it's not mandatory. However, if you have a professional and nice-looking photo, we'd love to see it! And if not, here's a tip or two on how to make one yourself.
When it comes to taking the photo, a neutral background would be best, such as a white wall. Try to avoid selfies if you can, and have a friend or a relative take a picture of you. No need for fancy photo equipment, your mobile phone will work just fine. And remember to smile!