set image panel function

finished function which sets the RT image panel to the appropriate
image from data[]