Util.java: set inNativeAlloc using reflection
CropImage: use accessors