Added a way to increase the memory allowance

Might make this dynamic, depending on image file size