Made alpha channel global and reset

Whenever the selection changes to "nothing" (e.g. no selection at all),
the alpha channel will be reset.

Fixes a bug where the alpha channel was stored even when trying to
convert a different value.