I have 3 functions. One takes picture, one compresses image, one uploads an image.
Button is pressed to take picture (this works fine) Another button is pressed to up