returning image correctly