hacky hacks for getting the generated screenshot