Adding function to extract skycells into images. We're using this in warp_overlap.pl as well as magic_tree.pl, so I'm consolidating the code.