update data.img with style param