added temporary code to create output hib for covariance mean to check integrity of results, fixed bug in JPEGImageUtil which was generating IndexOutOfBounds exceptions