Bugfixes for Permissions and image service