Fix generating image from YouTube