libvirt.tests: Prevent endless image encoding for save_image_edit.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>