function now returns location of png, delets temp