Added CGalleryView class and declared its some functions.