replaced old imagePath