added updateTakenScreens() to the onResourceError callback