Final version - saves to image file