Fix scrolling bugs and add image mask layer.