library for jpeg codec.