Add take screenshots function