now reading mask images as intensity