When input images (palette mode) have transparency (bytes) in info,
the output images (RGB mode) will inherit it,
causing ValueError in Pillow:PIL/PngImagePlugin.py#1364
when trying to unpack this bytes.
This commit check the PNG mode and transparency info,
removing transparency if it's RGB mode and transparency is bytes