added option for uploading photos via url