Commented upload image functionlaity