My ex husband hacked into email and took personal photos, now blackmailing me for money

Hello everyone, I'm an indian, who got married with a wrong guy who don't go to work and drink everyday. He beats me everyday in front of our child. So I thought to move away from him without endangering my son's life. I applied for a MBA program in France and moved to France on Oct 2016 and placed my kid with my mom with a agreement filed with court that his father cannot take him from my mom home. I fall in love with a guy in 2017, we are dating each other for a year now but the problem me and my current boyfriend took a few personal photos not too sexy like just kissing. My photos has been saved in Google photos in a email address I created in 2017 for applying jobs, which is not known to anyone only for a few of my friends here in France. Somehow my ex husband hacked into my email account and sending me my photos with my boyfriend. He is demanding to give him 500000 rupees in indian money or else he will send the photos to my family and post it in internet. He also demands that I should give him my son or sponsor for my ex husband to come to France. The 500000 rupees is just for his pocket money then he wants money around 50,00,000 Rupees for giving these photos. Im just a student doing underpaying jobs to survive here. What are my options if i go to court for applying divorce, does he got an advantage of getting my son 8 years old or i have the advantage. The main problem is i couldn't apply for a divorce when i was in india because of his behavior. What are my options how can i deal with this? Note: yesterday my brother call him to speak for solving this problem, once he spoke with him. My ex husband called me again and said try to get the money from your brother i will give you a share.. He is totally physcho...