Support transparent png

Because when png convert to jpeg, transparent is lost.
Peter if you have time see in code i leave old convert code but i don't
know why converting doing. may be need just delete convert.