added image compatibility for various paths