i can work with javascrip api for gis and work with image server in arcmap and arccatalog and i need to work with image service in javascript api to

zoom to image , get values of image and i need to know i can add image to moasic data set by using javascript

thanks for advance