preparing for disk image