add ajax function to get edited image from aviary server.