Abstract image grid fragment. Not tested