Moving requestSafePixel functions into the agent class. I think other classes should also use them.