def METHOD_NAME(self, instance, validated_data):
    if "title" in validated_data.keys():
        title = validated_data["title"]
        instance.title = title
        logger.info("Renamed user album to {}".format(title))
    if "removedPhotos" in validated_data.keys():
        image_hashes = validated_data["removedPhotos"]
        photos_already_in_album = instance.photos.all()
        cnt = 0
        for obj in photos_already_in_album:
            if obj.image_hash in image_hashes:
                cnt += 1
                instance.photos.remove(obj)
        logger.info("Removed {} photos to user album {}".format(cnt, instance.id))
    if "cover_photo" in validated_data.keys():
        cover_photo = validated_data["cover_photo"]
        instance.cover_photo = cover_photo
        logger.info("Changed cover photo to {}".format(cover_photo))
    if "photos" in validated_data.keys():
        image_hashes = validated_data["photos"]
        photos = Photo.objects.in_bulk(image_hashes)
        photos_already_in_album = instance.photos.all()
        cnt = 0
        for pk, obj in photos.items():
            if obj not in photos_already_in_album:
                cnt += 1
                instance.photos.add(obj)
        logger.info("Added {} photos to user album {}".format(cnt, instance.id))
    instance.save()
    return instance