export layers to PNG script fixed