working on ajax request for updating image positions