Save thumbnails as png files correctly.