FIX: Gallery

Ready for review/merge.
Oh, AFAIK in buffer all arrays are made NxM, similar to how the shape in texture classes always includes a dimension for "color".