restrict image thumbnail resize to horizontal only