Clustering photos using associated tags

I have retrieved a set of flicker photos with associated tags for a particular search term. My next attempt is to cluster these photos by using the associted tags. I am going to use hierarchical clustering method . Is it possible to cluster photos like this (I am consider about method, not results). I am bit newbie for this. Any suggestion is highly appreciated.