jpegoptim: add --HEAD

Closes #22384.

Signed-off-by: Xiyue Deng <manphiz@gmail.com>