fixed whiteout handling when creating an image