Add auto mode where both lossy and lossless compression are tried and the smallest file is chosen. This should be the default for JPEG files.