added an upload image method