Added api subdomain to API requests
Made images path configurable