Shape adaptive embedded wavelet image code