Add class active for layers and print image border