What did you do with the photo you were sent? Did you save it on any of your electronic devices? Did you delete the message containing the photo?
Sounds like you have been charged with an offence of possession. The answers to the questions I have asked will be important in determining whether you are guilty or not.
Go see a lawyer. Everyone hates lawyers, until they need one. Any you need one.