Various updates

Remove extra function duplicated by core, image filtering and save_id for CMB.