Modified throwpaint class

Better depth values and rotation test.