pure ruby PNG file manipulation & validation