Imagemagick rotate replaced by lossless jpegtran.