Create optimized thumb parameter

This adds an optimized_thumb parameter that can be used as a replacement for thumb and uses https://github.com/toy/image_optim