Implemented ResizePowerOfTwo.
Merge pull request #1247 from SickheadGames/ResizePoT

Implemented ResizePowerOfTwo