#43: added img element to contain selected image and no longer fade out selected image ; fixed sorting of images in the gallery when using drag and drop