added codec mode jpeg