Get rid of dirty hack when allocating big frames

Each frame has to be power of 2 size.

milestone2