Rewrite camera imagepicker code

Realized it wont help - UIImagePicker's are returning UIImages, not raw image. But wanna get these two commits anyways, so why not merge this branch