refactored args setup, fixed browser parameter bug
optimized broken image determination