update img opacity setting