Use Bigarray instead of string in imper_imagetoblob_bytes