fixed bug in quad image view

bug did not allow displaying of the last image in a the study when not
in quad view