protocol output size fix for optimized images