I\'m working on a 2D Graphics Engine, when I use the following code to rotate the images I get \'write access violation\' exception for newBits if the image dimensions have