fixed bug hasAlphaChannel store into static array

I have found this myself while building a unit testcase for images :)
This bug is reproduceable:
If you have a loop with mixed png images (with and without transparency), the value of the first image was stored and returned for all others. This could result in transparent images become black background or in not transparent images get not sharpened! (@Martijn: I think it was this one you run into earlier)

When writing this function I want avoid to open the file multiple times and thought to store it in a static variable is a good idea. But also I've thought it is static for the lifetime of one ImageSizer instance, but it seems that it is permanent for all following ImageSizer instances.
(Learned something new today)