Taking a Screenshot: Error 908: The permission WRITE_EXTERNAL_STORAGE has been denied

this is a known issue, see also Unable to take screenshot of Google Maps

why don’t you use the built in screenshot component as you started in the beginning of this thread?
You might try again and provide a screenshot of your updated relevant blocks using the built in component

Taifun