Working implementation of image grid for team media!

This is by no means ready to merge.