Statistics for Quadtrees, Transforms and Image Coding