first semi-working commit of jpeg processor