Optimize my new renderer to older browsers

This change uses only one dirty rectangle for one layer. Even though the current code runs faster on newer devices (and browsers), it runs slower on older devices (such as iPhone 4S which needs more speed.