final fix for making screenshot