improved JavaScript render speed of image lists a lot.
fixes #47