Complex#image is removed from Ruby 2.2
Numeric#im is removed from Ruby 2.2
use CMath instead of Math
use original method for Complex#imag