Fixed some errors

I dont know if the 1000 upload CPU->GPU are working correctly
I dont know if the 1000 download GPU->CPU are working correctly
Threshold image are not saving thus, seems like its not working
correctly