Fixed line length and other style issues, removed unnecessary logic from image links and other misc changes