udpate converson fonction with the new size of the frame