Fixing memory leak caused by poor naming of private API used to take screenshots