imageframe: added building of config panel on startup based on mode argument