update img permissions