fix uid/gid mapping for images