An Energy Optimized JPEG Encoder for Parallel Ultra-Low-Power Processing-Platforms