upload works with re-size and display thumbnail