Mosaic grid gallery with dynamic size images