system-test: check jpeg and webp rewriting quality