add support for branches in image building
some little improvement for git clone

- use branch name explicitly , so it's more intuitive to change it
- only fetch that 1 branch, and skip history