add a plot test function & Plot use SafePutPixel instead of PutPixel