added flickr gallery and fixed a bug