system-test: check rewriting images works