Functions used to drag image using jQuery