FIX Memory leaks in PNG export