changed imagecube to use get_cd; added more rounding in test_imagecube