title: Get image name of impaths in python
body: <p>I have a impaths function in my document that gives the whole path of images back, e.g.:
  /../Documents/Furniture/1.jpg
  /../Documents/Furniture/2.jpg
  … up to 40 images.</p>
  
  <p>If i print the impath I always get the whole path back. Is there a way I can only get the image names back (e.g. 1.jpg, 2.jpg).</p>
  
  <pre><code>for i in range (len(impaths)):
      impath = impath[i]
      print impaths
  </code></pre>