Change `private` to `protected` for Overrides

Change `private` to `protected` for overrides

- Change `$numThumbnailLevels` to `protected`
- Change `$attributes` to `protected`