Implentation of handler for device:change event

The appropriate image is now also set on the page load.