16384 is 64 * 64 * 4, don't know if it would make sense to use bpp instead of hardcoded 4 ?