returning image as well