updates images and styles in attempt for dynamic resizing