update image hover function