check file extension against contents, try another method of checking transparency

Let's see if %[opaque] works any better than %A.  If it's worse, we should change that part back.