Added old mode to mask creator script. imread can specify read format