This is a specious argument. Guns have positive social purposes, and the right to own firearms is specifically articulated in the Constitution. There is no such right to kiddy porn, and no redeeming social value from allowing the depiction of child sexual abuse.
The portions of the law that were struck down covered more than actual child porn. That's precisely why they were struck down.