fixed broken tag and updated image spans