Complate gallery feature.
Fix bugs.