add ffmpeg image2 support