fixing display of latest images
removing Jquery Dialog style redefined in gallery.css
fixing bug #4518 by escaping String