Changes to use DynamicImage type from the new rust image library