Use temp file with .png extension.