compatibility - keep old atlas format when there is no mask