Make gallery thumbnails match theme