Back to JS handling of image heights in mobile