In fact, both photos will show the rear of your car. The first photo is taken as soon as the red light in on; then the second one is taken to see if you stopped your car or just drove through. The fine is about 190 dollars.
But if the red light was on right after you passed the stop line, you'll be OK.