Fixed error notice when $img_path is not defined

This happens when the image is not within the theme or uploads folder