Only get rootfs when we need to calculate the image size

Docker-DCO-1.0-Signed-off-by: Michael Crosby <crosby.michael@gmail.com> (github: crosbymichael)
Merge pull request #3487 from crosbymichael/improve-images-speed

Only get rootfs when we need to calculate the image size