The law makes sense though from one perspective, as silly as this sounds. Having sex is far less worse than a video/picture of you naked, which may exist on the internet for a very, very long time. Think Amanda Todd and it being used as blackmail; the added threat of it being child porn is a real turn off.
Of course you then wonder how much can change in just 2 years, but if you're legally an adult, and you consented to the image, it won't be classed as child porn, but revenge porn laws are a thing.
But the easiest solution is not to consent to being filmed/photographed if you don't want to be...With how google photos uploads automatically the second you take a picture I don't trust smartphones these days...