Implement algorithm zoomFrames