- Removed hardcoded image locations.
- Moved code into mainWindow() function.