use old api to draw nsimage