work-in-progress jpeg decoder updates