Fixed bug with variable 'x' in closure. Increased timeline size. Prevented corner-cases (image and text cut for first and last events). Fixed small bugs in algorithm.