Creates a Graphics2D from a Rectangle and a BufferedImage such that
(r.x,r.y) in Graphics2D corresponds to (0,0) in the BufferedImage
and the clip area of the Graphics2D is exactly the size of the BufferedImage.
If skipIntermediatePackets is true then for any number of successive samples
that are in the queue when it is polled, only the most recent sample will be
reported.