image: Setting proper permissions