Added discard alpha option.