JPG optimization is async, so use different temp file names