first attempt with images height resize