updating img works