More PNG optimizations