Turn out, that caching on the client side does not play well when new data is loaded into the system.
Doesn't work perfectly yet, because the height/width sometimes changes by one or two pixels.
added loading icon image is scaled to available space