update image counta