An electronic device comprising: a camera; a display; a memory storing one or more instructions; and a processor configured to execute the one or more instructions stored in the memory to: obtain information of a screen size of an image display apparatus; calculate a size of a region determined by a marker displayed on the image display apparatus, based on the distance between the electronic device and the image display apparatus, based on the size of the region, determine a size of a wall surface to be photographed; control the display of the electronic device to display a preview image being captured by the camera, on which a guideline indicating a first region corresponding to the determined size of the wall surface is displayed at a first location, wherein a size of the guideline is adjusted based on the distance between the electronic device and the wall surface such that the size of the guideline increases in response to the distance between the electronic device and the wall surface being decreased; in response to a user input indicating a second region other than the first region of the preview image being received, move a location of the guideline from the first location to a second location corresponding to the second region; control the camera to capture an image of the wall surface, corresponding to the second region indicated by the guideline that has been moved in response to the user input; and transmit the captured image to the image display apparatus for display on the image display apparatus. a camera; a display; a memory storing one or more instructions; and a processor configured to execute the one or more instructions stored in the memory to: obtain information of a screen size of an image display apparatus; calculate a size of a region determined by a marker displayed on the image display apparatus, based on the distance between the electronic device and the image display apparatus, based on the size of the region, determine a size of a wall surface to be photographed; control the display of the electronic device to display a preview image being captured by the camera, on which a guideline indicating a first region corresponding to the determined size of the wall surface is displayed at a first location, wherein a size of the guideline is adjusted based on the distance between the electronic device and the wall surface such that the size of the guideline increases in response to the distance between the electronic device and the wall surface being decreased; in response to a user input indicating a second region other than the first region of the preview image being received, move a location of the guideline from the first location to a second location corresponding to the second region; control the camera to capture an image of the wall surface, corresponding to the second region indicated by the guideline that has been moved in response to the user input; and transmit the captured image to the image display apparatus for display on the image display apparatus. obtain information of a screen size of an image display apparatus; calculate a size of a region determined by a marker displayed on the image display apparatus, based on the distance between the electronic device and the image display apparatus, based on the size of the region, determine a size of a wall surface to be photographed; control the display of the electronic device to display a preview image being captured by the camera, on which a guideline indicating a first region corresponding to the determined size of the wall surface is displayed at a first location, wherein a size of the guideline is adjusted based on the distance between the electronic device and the wall surface such that the size of the guideline increases in response to the distance between the electronic device and the wall surface being decreased; in response to a user input indicating a second region other than the first region of the preview image being received, move a location of the guideline from the first location to a second location corresponding to the second region; control the camera to capture an image of the wall surface, corresponding to the second region indicated by the guideline that has been moved in response to the user input; and transmit the captured image to the image display apparatus for display on the image display apparatus.