use executeFetchTask method instead of deprecated rasterTaskPool method
Use setVisibleElementsList instead of accessing visibleElementsList directly