Got rid of subprocess, created find_image_format procedure instead of qemu-img