Use tempfile for pictures