added frame by frame reference
got pic capturing working