Added initial testing to check if server is alive. (Assumes if host is reachable that wordpress is up) If connection is lost continues on cached images and tests server connection. Returns to normal if server is reachable again.  Need to account for case where server discconects within first cycle through grabing images. At the moment assumes it has all the images