fix error in teitoodt where calculating height of picture