Retrieve mask from images.