clean up primitiveSaveImage
Add primitiveInstField