File extension of tempfile should be based on downloaded image