create methods for getting the width of the current image in an
animation