10 incredible images of solar flares: An X-class flare just before a coronal mass ejection