Got it working outputting 25 jpgs