implement the 'freeze' function for incoming frames;