Fix createMask byte conversion for non multiple of 8
Add examples of mask creation to the training ROIs function