updated ref for displaying images