Added extension support in layer name (PNG & JPG)