Better popup

Added a true implementation of the modular image popup. Definitely not a
perfect solution, but sufficient for my purposes.