fix img perms