more efficient file handling (image layers)