An imaging-based laser system can include a laser-beam system, configured to generate and scan a beam of laser pulses with an adjustable laser-power parameter to points of a scan-pattern in an eye, and an imaging-based laser-controller, configured to image a layer in the eye, to control the scanning of the beam of laser pulses to the points of the scan-pattern, and to control a laser-power parameter of the laser pulses according to the distance of the points of the scan-pattern from the imaged layer.