Added complex log function, domain image features, fixed a sign bug.