Sets the thumbnail image as background to a div