Fixed undefined post
Added image.src and a.href fixing