ionic example to take a picture and upload it