phil has a blog - Using Image File Headers To Verify Image Format