In almost all instances, photographing the person who has passed is considered to be in extremely poor taste. Only do so if the family specifically asks you. If you are asked to take a picture of the person who has died, do so discreetly and without using the flash.