1. floated images in gallery.
2. updated algorithm of image gallery generation.