Removed deprecated function compositeToPoint and replaced with drawInRect.