fix composition of semi-transparent layers

Hi, this should fix composition of semi-transparent layers in case we get image from layer group.
Bug with current behavior can be seen by fetch image from “grp1” layer group in semi-transparent-layers.psd