automatic hdd.img size detection