Writing image file onto phone