Undefined Variable in my widget

You need to use $instance['image_path'], or extract $instance (I prefer the former).

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)