cache busting when loading image to test ping. Minor refactoring.