1. A method of generating a panoramic image in an application on a portable electronic device, the method comprising: rotating a camera of the portable electronic device with respect to the portable electronic device via a motor of the portable electronic device; recording a plurality of images at a corresponding plurality of angles between the camera and a direction of the portable electronic device; and stitching the plurality of images together based on the plurality of angles and creating a panoramic image from the plurality of images.