Generalized the density projection method.
	modified:   visualize.py