Fixing bug with image id being lost on update.