Fixed a warning because of deprecated save screenshot method in API