Note that if the image is small enough, you may be better off to just receive the whole image anyway, since closing and re-opening a connection may be slower than receiving a few hundred extra bytes (many modern HTTP implementations keep the connection open for consecutive requests by default, though I'm not sure if LWP::UserAgent does).
To OP: check the content-length header.