In the CB Gallery module settings, you have tabs for photos, videos and other media types.
To not display photos, simply go to the Photos tab and in the first setting "Photos", change the setting to "Disabled".
Repeat the same for other media types you don't want to have displayed.