work on codec mode jpeg