Remove unwanted matter from frame