Add extension to temp file to appease imagemagick