This sounds like a problem with the order of drawing. I think you need to set the zorder parameter in your call to imshow, try using a large number to get the image to draw on top of the background:
plt.imshow('myimage.png', extent=(x0, x1, y0, y1), zorder=10)