Add method for uploading an image