Changes to avoid NaN values while FFT

Correct width of image to uneven and height of image to even values if
necessary to avoid NaN values as a result of the FFT.