Get remote image dimensions without downloading a whole image