Spectacular images of one of the largest canyons on Mars have revealed layers of sandstone-like rock that may have formed a sodden ancient environment that could have supported life.