Toy image processing library in C++