Technologies are generally provided to establish imaging through an optical fiber to enhance optical coupling between an optoelectronic device and the optical fiber. Imaging may be established by determining transmission properties of the optical fiber based on an observed light pattern, and applying a phase mask to input light based on the transmission properties to produce a focused light at the output end of the optical fiber. The focused light may be employed to determine a position and orientation of the optoelectronic device relative to the optical fiber by scanning the focused light and collecting light reflected from the scanning of the optoelectronic device at a charge-coupled device (CCD) camera and generating an image of the optoelectronic device. The position and orientation of the target device may be adjusted employing precision alignment tools to enhance alignment of the target device with the optical fiber for optimal coupling.