changed indentation from previous commit

and removed 3 lines from hasAlphaChannel that are not more used without decaring $a as static.