fix problem with images in samples