Fix image height computation