refactored frame into image
fixed time counter
added image drawer interface