I don't think that's right. I think it's `images.map {|i| i.height + i.spacing}.max`

Also, we don't need a `return` here. The ruby idiom is to only use `return` for early returns.