colour coding snapshot bg, but not working

Tried to make surround of snapshot colour  coded to indicate size.
Will not update on first launch of window.
Commented out