[#5] implement the add image functionality on client.