picture uploading

added some picture uploading back end functionality