Created viewer for Shiro code with two types of gallery: freeform, and grid