Returning scatter plotting as image