Removing RazorGenerator from gallery