add makeIcon function for iOS developing