Added functionality to upload a local picture