merge create16 and create32 to createicon function
extend image