(JPEG) Encoder HW clean UP