imagedir is instantiated now and is corrected if not installed