Provided simple encoder (BMP -> JPEG)