Photo Gallery main framework