Get gallery info depending on if it is an image or album [#475]