Not sure that I follow what you are trying to do.
The definition given above for the logarithm, \(\displaystyle w^z = e^{z\log (w)}\), is standard. I suggest your working with this to understand some basics.
For example:
\(\displaystyle i^i = e^{i\log (i)} = e^{i(\ln (1) + i(2k\pi + \pi /2)} = e^{ - (2k\pi + \pi /2)}\).
As you can see the imaginary part of that is 0.
The value of the expression for \(\displaystyle k=0\) is known as the principal value.
That corresponds to the Log, logarithm with a capital L.
So here is the principal value of what you posted.
\(\displaystyle \begin{array}{rcl}
\left( {a + bi} \right)^i & = & e^{iLog(a + ib)} \\
& = & e^{i\left( {\ln \left( {\sqrt {a^2 + b^2 } } \right) + iArg(a + bi)} \right)} \\
& = &e^{ - Arg(a + bi)} \left[ {cis(\left( {\ln \left( {\sqrt {a^2 + b^2 })} \right] \\
\end{array}\)
Now the imaginary part of the principal value is:
\(\displaystyle {{\ Im}\nolimits} \left( {\left( {a + bi} \right)^i } \right) = e^{ - Arg(a + bi)} \left[ {\sin (\left( {\ln \left( {\sqrt {a^2 + b^2 })} \right].\)
EDIT: correction.