Transform to pixel coordinates in draw method