fix bug update image from structure