A picture of someone sleeping on the ground is not really a good indicator of their work performance one way or the other.
Only the company would really have insight into that.
Pulling a late night and sleeping on the ground does not make you immune to a layoff.