imaging: Ref #2099 Fix pyFlakes warning