Fixed issue with reconstruct to image. When the image size is to large the reconstruct fails becuse there is not enouph memory for the stream. Moved to temp file.