CKFinder - Sample - Standalone
CKFinder may be used in standalone mode inside any page, to create a repository manager with ease. You may define a custom JavaScript function to be called when an image is selected (double-clicked).