Quite sure that could be considered endangering the welfare of a child.
You know its not too hard for the cops to see that pistol pic, run your name find you dont have a permit and/or the registered pistol, and just come to your door and arrest you.