added test code to display an image (refactor into ImageManager later)