Fix screenshot taking in windows