added img according to online status of device