mask images are now saved in binary format to save disk space.