refactoring obspy.imaging using matplolib's compare_images (fixes #603)