Remove crashing bug when viewing 4D images