improved success log of imagetoserver angular function