from an 1024x1024 image automatically making icon for cocoa application