Adds 'getOpacity' to LayerRGBA