display image func works