updating the imgSrc showing [object Object]