changed from GIF to JPG for size and memory issues on raspberry PI