started work on own jpeg encoder