move native methods from MainActivity to ImageNet