reducing GC churn
deleted unused line class
added forward declarations (opt for V8)
added pre-scaled image
fixed forward declaration (opt for V8)