Fixed ResizeToPowerOfTwo

This fixes the ResizeToPowerOfTwo feature of TextureProcessor which was previously not working at all.