First round of easy optimizations in blitting logic and math