Allowing dragging and dropping of images