Added alternate tag for image
Added edit post logic