Tiled Gallery: Fix grayscale effect.

Grayscale now works after it was broken when moving things to templates.