Fix two MiB <-> MB conversions

I have tested the fixes with VirtualBox and KVM image creation on Debian Jessie.