Fixed bug. When previewing a big image, sometimes it is not possible load it because there is an out of memory error