added visibility flag to frame data
improved color transforming