gets and saves images