Upload image functionality added.