fix net
cocoa
fix Encode image interface