Added density independent pixel measurements to make scaling work properly.