fixing point->pixel issue