fix vflip hflip
added upload to the motion detector