Add test

Test processing and encoding a jpeg file.