save texture to image file