Add support for image decoding/encoding with -Ddisable_cffi, minor fixes