First general improvements
Added layer border and background
Small code changes for faster execution
Make hash non dependent on frame
Improved imageviews to use background color when possible