added WriteImage to Conext struct which wraps call to return an image from the file system