Separate sixel_encode_impl() into sixel_encode_header(), sixel_encode_body() and
sixel_encode_footer().
Merge branch 'arakiken' into arakiken-separate-sixel-encode-impl