Remove debug output.
Dynamically add the needed anselRow elements and handle special case.

Special case where we don't have enough images to finish a row,
the scale ratio will stretch the images to fill the row, distorting
them. Handle this by rescaling back to a maximum of maxHeight and
let the browser do the proper width scaling.