Move thumbnail creation to its own method

Change-Id: I1d1b2aff4d8b919bd65e0da8ff07b594f061ccd7
Use div with background-image for landscape

This is to prevent the layout from breaking on landspace popups

Change-Id: Ia9d051b4f060d549a4a188ca42fb70a97eed23ab