325 image limitation fix

Fixed the limitation that caused you to be limited to taking 325 images.
*hint* the thread wasn't getting killed! also fixed formating