Manifold aligned density estimation