Refactor the Imagine stuff out of the event listener

To preserve the SOLID principles the event listener should know how to listen for events and not how to generate images.