Now using "this" object variables, added img counter.