Back when it was common for families to photograph the dead there weren't "rules", but as usual in our country the few decided it was not "correct" to photograph the dead and the practice was pretty much brought to a halt. Some cultures still do it though. Before photography many had paintings commissioned of the dead as a way to remember them.
JS