Use a new Class to create the application instance
Handle remote images too with imgdb:gen
Adapt to changes