acGrey16Image and some bug fixes