Adds a function to process message for screen shot