img module: bugfix for mount_image