Deal with media types in species image gallery