Fix for gallery media

Fix for https://github.com/CODeRUS/mitakuuluu2/issues/238