Class for converting BMP frames to compressed JPG buffer