partial revert of d4fa608b (L2313) see #54 (13326399)
"allocate bigger first" change was meant to save allocation time keeping same lightmap file size, actually wastes both time and size