Fixed memory problem loading big images.