Adding loadimage endpoint