Fix image links, convert some local vars to my vars