Implemented dynamic resize of bottom frame (child of FrameLayout) to create square viewport for camera preview.