code: def image_shift(xshift=0, yshift=0, axes="gca"):
      
  
      if axes=="gca": axes = _pylab.gca()
  
      e = axes.images[0].get_extent()
  
      e[0] = e[0] + xshift
      e[1] = e[1] + xshift
      e[2] = e[2] + yshift
      e[3] = e[3] + yshift
  
      axes.images[0].set_extent(e)
  
      _pylab.draw()
docs: This will shift an image to a new location on x and y.