Fixed the permission checking issue.

- Fixed the perimssion checking issue.
- Shrink the size of permission view pictures.