[Olena-patches] proto-1.0 235: Fix PBM (binary) image writing