imaging: Fix pyFlakes warnings