Optimal erasure protection assignment for scalable compressed images with tree-structured dependencies