Working ptg_tile (first version)