Image and Video Optimization: Reference Architecture