Refactor images path templates