Optimizations to main screen blitting function