Tensor product multiresolution analysis with error control for compact image representation