image and javascript library