Made maxrects packing heuristic and bin size configurable.