added drawMask to Image