It is a shame that someone would stoop so low as to take something personal and private to hurt someone they loved once before. IF they did share personal memories (sexually themed photos ) with strangers on the internet that is a pretty low and juvenile blow.
I would try to contact him and ask respectfully ask for the photo’s back so you may do what you like with them. If he is a honorable man than he will do as you ask. If he is still a juvenile boy he will not and then I would get a lawyer to step in.
I would also advise you to never take photos like that again unless you are happily married for many years but it is your body and your image and you may choose what you do with it.