fix #257. support "jpeg"