added take photo and upload