Implemented selecting in the gallery.
Added missing files.