Cleaned up image saving
Added variable wait after saving a frame