Add keep_aspect_ratio attribute to thumbnail_format