Added an imgPath attribute as well