My suggestion in this case would be to just insert it as background from the start. If your html is neat, that bit of alt isnt gonna give you that much juice ;)
Based on your comment and topic, if you make them a fixed size you could save yourself a whole lot work:
Background-size to cover alway shows as much image as possible, with the least amount of overflow horizontal or vertical. And is response.