losetup needs loopback mount
Shrink userdata image size

The size is not real size, it just represents userdata.img size.
Sparse ext4 image can not be mounted as loopback
Mount userdata.img with overlayfs