Returning image and text file working