Image loading/saving library written in C++