Added some basic handling for png-trans and a sanity check.