added option to use pixel color as alpha layer