Added support to save images and movies.