further work on image compatibility and formatting.