write image to raspberry pi