Limiting the pixel density values into practical boundaries.