Initialize variables in the constructor.
Cppcheck fixes:

* reduce variable scope
* remove unneeded variable assignments
losslessly compress res/tickcross.png