Based calling newer drawInRect on foundation version greater than 6.1.