Conversion for UBYTE array to image