Update MemoryTest.java

This might actually work now. :3
Initial tests have this capping image-related memory use to about 500mb.