ImageAnimation

constructor(frames: List<ImageFrame>, direction: ImageAnimation.Direction, name: String, layers: List<ImageLayer> = frames.flatMap { it.layerData }.map { it.layer }.distinct().sortedBy { it.index })