Move emsg to inline funcs.
Free images buffers as well.
Add pic module to store image buffers and conversion between any image format.
Disable gcc strict aliasing rules to prevent warnings.
Cython sometimes gets confused when multiple  variables of same type is declared on the same line.
Don't mark external func as static to remove warnings.
Fix gcc warnings.
Fix remaining warnings when using latest latest cython.