added support for grouped layers by using copy to clipboard instead of export