fix bug where image update wasn't being handled properly