Taking pictures from camera and uploading to php server