program compresses images using quadtrees