feat: Divide an image into layers