iOS optimized PNG converter (based on Kylinworks source code)