Any fix to the given method or other solution for taking screenshot on the device. Thank you