Set limit to to around a quarter gigabyte for a 24 bit (3 bpp) image