tiff converter now uses dtype as parameter