code: def get_combined_size(tiles):
      
      # TODO: Refactor calculating layout to avoid repetition.
      columns, rows = calc_columns_rows(len(tiles))
      tile_size = tiles[0].image.size
      return (tile_size[0] * columns, tile_size[1] * rows)
docs: Calculate combined size of tiles.