1. A method for creating an x-ray image of an object by means of an x-ray device, wherein during one at least partial circulation, an x-ray source and an x-ray detector are moved around the object, wherein the x-ray beams generated by the x-ray source and passing through the object are detected from several different directions by means of the x-ray detector, characterized in that at least one optical camera records the object during the circulation, and at least one first optical image is created, wherein the at least one optical camera has a known and defined positional relationship to the x-ray source and/or to the x-ray detector, wherein the at least one first optical image is used to determine a movement trajectory of the x-ray detector relative to the object, wherein the at least one optical camera is fixedly mounted on the x-ray detector.