fix check for where to place the image viewer