use image magic for layer name extraction