frame clipping

added clipping to frames