Improved Photogallery custom post type