pages img improvment, local links and gallery