Code moved to Middleware
Add settings [size][safe referer][resizeUp][jpegQuality]