Resize to limit

I needed a #resize_to_limit method, so here it is. Also did a little code, since resize_to_limit is basically a resize_to_fit that refuses to scale the image up.