in reply to image size in k

If the image is stored locally, you could use -s. If the image is accessible by web server, you could do a HEAD request and check for a Content-Length header.