For metal frames, I put in wire hangers top and bottom, then I cut a piece of aluminum strap to size. Drill a hole in the strap and use a #10 machine screw and nut with a little Loctite on it. It's strong and secure. One some metals, like Nielsen Elements, you can actually drill through the backside of the moulding and attach the strap without a wire hanger.
For wood mouldings, you can screw the strap right into the back of the moulding.