adding default image line and bug fix on line 87