Towards survival prediction of cancer patients using medical images