integrate sage-images from a submodule to functions as a function

Change-Id: Ie2d80525957cf7533561b210d1adabef5ac013ea