add display photo functionality.