hikvision specific snapshot code