replace thumbnail img tag with div with background image