added comments to Upload Image function