def METHOD_NAME(new_rectangle_id, person_id, user_id, user_profile):
    new_rectangle = FaceRecognitionRectangle.objects.get(pk=new_rectangle_id)
    person_album = Album.objects.get(pk=person_id)
    if (person_album and not AlbumPhoto.objects.filter(photo=new_rectangle.photo, album=person_album).exists()):
        albumPhoto = AlbumPhoto(album=person_album, photo=new_rectangle.photo, type=AlbumPhoto.FACE_TAGGED,
                                profile=user_profile)
        albumPhoto.save()
        person_album.set_calculated_fields()
        person_album.save()
    save_subject_object(person_album, new_rectangle, user_id, user_profile)