Fix bug with temporary png left behind