Fixed #403; image now keeps ratio