Tiled Gallery: Split square talavera.

Split the square talavera function so that the HTMl generation uses the same Tiled Gallry Item class as the rectangular talavera logic. Code reuse is increased, also leaving the logic in the actual talavera much simpler.