img module: bugfix for mount_image
Merge pull request #5960 from mgwilliams/virt

img module: bugfix for mount_image