rebased master
added vram to fix maximize problem
Merge pull request #14 from StefanScherer/add-vmem

Add vram to fix maximize problem