'Update the camera\'s image if it has changed.'

def camera_image(self):

    try:
        self._url = self._bloomsky.devices[self._id]['Data']['ImageURL']
        self._bloomsky.refresh_devices()
        if (self._url != self._last_url):
            response = requests.get(self._url, timeout=10)
            self._last_url = self._url
            self._last_image = response.content
    except requests.exceptions.RequestException as error:
        self._logger.error('Error    getting    bloomsky    image:    %s', error)
        return None
    return self._last_image
