add tag function

simple image tag function ,still some bugs, please create branch to test it