Finished backend integration of image libraries

TODO: seamless API of image I/O.