added gallery library and support files