Reworked jpeg task workflow