Added media display on timeline

Displayed image in timeline.
Display progressBar while loading the timeline image.
Changed background to while.
Fixed some minor issues.
removed unused code.