fixed photo import bug, added api domain

fixed photo import bug, added constant for api domain