added node type check to layered_image node hooks