Modeling the PSF with Principal Component Analysis