Function call when screenshot is taken