Wiping blue's from pngs with no transparency.

Probably better to not use transparency length to determine ret array size but incase it was used for something I left it in there.

It needs to be shifted when there is no transparency however, otherwise the blues get wiped from output png.