A library of functions for manipulating BPG image format files