Added numpy.ma call to mask the greyscale image