fix broken images and formatting