changed addImage return type