Added saving frame to file