Survival Time Prediction with Radiographic Images for Primary and Metastatic Liver Cancers