Simplified and added support for bg color

When converting an image from a type that supports transparency to one
that does not ex: png --> jpeg, a color needs to fill the space.