updates for image height and scaling