Optimized drawRect: