How to define template directory in this widget code

You can use get_template_directory_uri() and it will return the url up to the template directory then you can just append the '/images/FILENAME.EXT' to it to pull in the image.