Use shallow clone to speed up image creation