FIX: Image resizing breaks when one of the resized image dimensions is between 0 and 1

Solution: Round up to 1 instead of down to 0.
`max(1, round($width))` is a slightly nicer way of doing this.