You want to drag a picture based on the mouse movement? Draw a picture. Work out what your mouse offset is in that picture. Whenever you move your mouse, reposition the picture taking that offset into account. There, you have everything you need to know to write this for yourself.
Hi Eddy Vluggen. Thanks for the answer. I already did this, but I want that the image appears in desktop understand? Like the cursor. And if I remove that line just appear a window with the image. Can you help me?