added image; separate js file for prefences