resized images and reformatted code