memory usage stuff
Merge pull request #30 from lxdvs/nick/memory

reduce extra image inflations