`save_jpeg` becomes `imwrite`.
Rewrite unit tests.