An image forming apparatus determines an exceptional frame of a plurality of frames of a moving image of an eye based on the image features of each frame, and changes a moving image forming method based on the determined exceptional frame. For example, the image forming apparatus generates a new moving image by extracting a frame sequence including frames extracted from the moving image not to include a frame which has been determined as an exceptional frame.