auto detect image channels.

JPG and other RGB images were broken because we forced RGBA.