[core] fix problem of image rotation by jpegtran