create a palette before converting transparent L-Mode to RGBA
fixes #154
Merge pull request #180 from d-schmidt/master

create a palette before converting transparent L-mode to RGBA