Fixes image permission issues for non-admins