Make the record menu item work

I didnt have a self.setSnapshotCounter() function so I make a new one. 
If using this method to make a movie for a long process QT sometimes runs out of memory.