fixed a bug where input was 24bpp TGA woud cause encoding problems. I now padd RGB to be RGBA