Reframe images

[Fixes #62354668]
Refactor layout into smaller chunks.
Change order of js/css to prevent flicker.