Library for handling different JPEG files