:copy_mem_image(void* scan0, int stride, int bgr) - copies
      postprocessed bitmap data into buffer</h3>
    <p>Function parameters:</p>
    <ul>
      <li>void *scan0 - pointer to buffer to copy data to. The buffer should be
        at least stride*image_height bytes;</li>
      <li>int stride - stride of each other image line (row) in bytes. Usually
        image_width*(bit_per_pixel/8)*image_colors, but may be more if you wish
        to align image rows to, for example, 8 or 16 or 32 bytes to make CP