Change scope of image function

The original repository have this function public for you can get the image without create a file.

Please consider include this fixture :)
This change is not necessary please remove it.