read image bounds on downloaded image