code for downloading jpg images of SDSS data.