changes to work with Injector.setBitmapFactory() and setFramework()