set kt/kp type in cmd/move ImageManager/WindowsMetrics from ui to common