many changes

Viewer now render only limited number of values

Added method renderToEmptyList

Added method getValueCount

changed structure of jsonImage - should be more programmer-friendly

cancelAction is now method cancelling timeout

split rendering into more methods. hopefuly it is nicer and more
self-explanating

getValueCount returns number of values needed to render if we want to
render first n values