adding the grayImage Array
adding get array Method