Fix the picture saving