image grid works if there are fewer images than columns