Use astropy logger; mask fix