Small memory fixes

- Imageloading moved to the constructor