A JS snippet for auto-refreshing an image