optimize image tester