Changed the mask/image storing structure

Some other things like block rendering have been changed