fix obtaining image height