guestfish_block_dev: Split image preparation from individual test case