Solved bug with paletted PNGs (had to add alpha channel)