Gravar-mail: Maximum Likelihood Wavelet Density Estimation With Applications to Image and Shape Matching