1. An optical system, comprising: a printed circuit board; an image sensor package mounted on the printed circuit board, the image sensor package including an image sensor; and a lens holder mounted on the printed circuit board and in contact with the printed circuit board, the lens holder including: a lens, and one or more alignment features arranged on the lens holder, wherein the one or more alignment features contact the image sensor package and mechanically align the lens holder with the image sensor package, the one or more alignment features comprising a recessed portion of the lens holder, the recessed portion having one or more protrusions arranged on an inside surface, the one or more protrusions extending towards the printed circuit board from the inside surface of the recessed portion to a partial depth of the recessed portion, each protrusion comprising a straight inner edge extending in a direction parallel to a side of the image sensor package and toward the printed circuit board to an end of the protrusion closest to the printed circuit board, and each protrusion of the one or more protrusions contacting each of one or more sides of the image sensor package along a direction extending toward the printed circuit board while being spaced from the printed circuit board.