 data and alpha channel (this will be slow)                 for($pixel = 0, $pixelcount = ($width * $height); $pixel < $pixelcount; $pixel++) {                     $imageDataTmp .= $pngDataRawDecoded[($pixel*0)+0] . $pngDataRawDecoded[($pixel*0)+0] . $pngDataRawDecoded[($pixel*0)+0];                     $smaskData .= $pngDataRawDecoded[($pixel*0)+0];                 }                  $compressed = false;                 $imageData  = $imageDataTmp; //Overwrite image data with the 