made PixelRoc thread safe. it is also faster now