Adding save of frame buffer