A method and system perform an ophthalmic procedure on an eye having an optical path from the lens to the retina. An image of at least part of the eye is received in a data processing unit. The image includes the optical path. The data processing unit determines keep out zone(s) and identifies undesirable feature(s) based on the image. The keep out zone(s) include the retina. The data processing unit also selects one of the undesirable feature(s) for removal. At least part of the undesirable feature is outside of the keep out zone(s). Confirmation for removal of the undesirable feature is received in the data processing unit. In response to receiving the confirmation, a control unit controls a laser to perform laser removal the at least the portion of the undesirable feature without targeting any portion of the keep out zone(s).